package com.woniu.exception.venueAdmin;

public enum VenueAdminExceptionCode {
    VENUE_ADMIN_CANNOT_CHANGE(1001, "不能修改自己"),
    VENUE_ADMIN_CHANGE_FAIL(1002, "修改失败"),
    VENUE_ADMIN_NOT_LOGIN(1003, "场馆管理员未登录"),
    VENUE_ADMIN_NOT_EXIST(1004, "场馆管理员不存在"),
    ACCOUNT_ADMIN_ABNORMAL(1005, "场馆管理员状态异常"),
    VENUE_ADMIN_ERROR(1006, "密码错误"),
    VENUE_ADMIN_PHONE_HAD_EXIST(1007, "手机号已存在"), VENUE_ADMIN_NICKNAME_HAD_EXIST(1008, "该昵称已使用");
    private final Integer code;
    private final String message;

    VenueAdminExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
